package com.bluedot.www.core.pojo.BO;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.bluedot.www.core.common.excel.DateConverter;

import java.io.Serializable;
import java.sql.Date;

/**
 * <p>
 * 客户excel表实体类
 * </p>
 *
 * @author Deng HongWei
 * @since 2021/9/9 14:42
 */
@ContentRowHeight(20)
@HeadRowHeight(30)
@ColumnWidth(25)
public class ExcelCustomer implements Serializable {

    @ExcelIgnore
    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    @ColumnWidth(8)
    @ExcelProperty(value = "序号")
    private Integer id;

    /**
     * 客户名称，字符2~10
     */
    @ExcelProperty(value = "客户姓名")
    private String name;

    /**
     * 性别（男，女）
     */
    @ColumnWidth(10)
    @ExcelProperty(value = "性别")
    private String gender;

    /**
     * 出生年月
     */
    @ExcelProperty(value = "出生年月", converter = DateConverter.class)
    @DateTimeFormat("yyyy-MM-dd")
    private Date birthday;

    /**
     * 职业，10个字符以下
     */
    @ExcelProperty(value = "职业")
    private String professional;

    /**
     * 手机号
     */
    @ExcelProperty(value = "手机号")
    private String phoneNum;

    /**
     * 兴趣爱好，用户直接输入
     */
    @ExcelProperty(value = "兴趣爱好")
    private String interest;

    /**
     * 对客户的描述信息,50个字符以下
     */
    @ExcelProperty(value = "客户描述")
    private String description;

    /**
     * 籍贯，30个字符以下
     */
    @ExcelProperty(value = "籍贯")
    private String nativePlace;

    /**
     * 现在居住的地方
     */
    @ExcelProperty(value = "现居地")
    private String address;

    /**
     * 病史
     */
    @ExcelProperty(value = "病史")
    private String medicalHistory;

    /**
     * 表示客户的重要程度（5：表示一般，10：表示中等，15：表示重要），默认为一般
     */
    @ExcelProperty(value = "客户的重要程度")
    private String sort;


    public ExcelCustomer() {
    }

    public ExcelCustomer(Integer id, String name, String gender, Date birthday, String professional, String phoneNum, String interest, String description, String nativePlace, String address, String medicalHistory, String sort) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.birthday = birthday;
        this.professional = professional;
        this.phoneNum = phoneNum;
        this.interest = interest;
        this.description = description;
        this.nativePlace = nativePlace;
        this.address = address;
        this.medicalHistory = medicalHistory;
        this.sort = sort;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    @Override
    public String toString() {
        return "ExcelCustomer{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", birthday=" + birthday +
                ", professional='" + professional + '\'' +
                ", phoneNum='" + phoneNum + '\'' +
                ", interest='" + interest + '\'' +
                ", description='" + description + '\'' +
                ", nativePlace='" + nativePlace + '\'' +
                ", address='" + address + '\'' +
                ", medicalHistory='" + medicalHistory + '\'' +
                ", sort='" + sort + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getProfessional() {
        return professional;
    }

    public void setProfessional(String professional) {
        this.professional = professional;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getInterest() {
        return interest;
    }

    public void setInterest(String interest) {
        this.interest = interest;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getNativePlace() {
        return nativePlace;
    }

    public void setNativePlace(String nativePlace) {
        this.nativePlace = nativePlace;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getMedicalHistory() {
        return medicalHistory;
    }

    public void setMedicalHistory(String medicalHistory) {
        this.medicalHistory = medicalHistory;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }
}
